using UnityEngine;

public class AdCallback : MonoBehaviour
{
	private void Start()
	{
	}

	private void Update()
	{
	}

	public void VedioPlayedCallback(string strCustomVal)
	{
		LoggerHelper.Info("VedioPlayedCallback:" + strCustomVal);
		AdManagerOld.instance.InvokeVedioCallback(int.Parse(strCustomVal.Trim()));
	}

	public void GiftPlayedCallback(string strCustomVal)
	{
		LoggerHelper.Info("GiftPlayedCallback:" + strCustomVal);
	}

	public void ExitCallback(string strCustomVal)
	{
		LoggerHelper.Info("ExitCallback:" + strCustomVal);
		int num = int.Parse(strCustomVal.Trim());
		if (num == 1)
		{
			Application.Quit();
		}
	}

	public void InterstitialPlayedCallback(string strCustomVal)
	{
	}

	public void InterstitialClosed(string strCustomVal)
	{
		LoggerHelper.Info("InterstitialClosed:" + strCustomVal);
		AdManagerOld.instance.InvokeIntersectCallback(int.Parse(strCustomVal.Trim()));
	}
}
